package com.shaobufan.museum.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shaobufan.museum.pojo.entity.Functions;
import com.shaobufan.museum.pojo.vo.FunctionsVo;

import java.util.List;

/**
* @author 17126
* @description 针对表【functions(功能表)】的数据库操作Service
* @createDate 2024-04-22 13:42:29
*/
public interface FunctionsService extends IService<Functions> {

    /**
     * 搜索所有功能
     *
     * @return List Functions
     */
    List<FunctionsVo> searchAllFunctions();

    /**
     * 根据部门查询功能
     * @param departId 部门id
     * @return List Functions
     */
    List<FunctionsVo> searchFunctionsByDepartId(Integer departId);

    Boolean alterFunctions(Integer functionId, Integer departId);
}